package com.ysxsoft.wdg.adapter.th;


import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysxsoft.wdg.R;

public class ThTypeAdapter extends BaseQuickAdapter<String,BaseViewHolder> {


    public ThTypeAdapter(int layoutResId) {
        super(layoutResId);
    }

    public void clear(){
        getData().clear();
        notifyDataSetChanged();
    }


    @Override
    protected void convert(BaseViewHolder helper, String item) {

        TextView tvType = helper.getView(R.id.tv_type);
        if (helper.getLayoutPosition() == 0){
            tvType.setSelected(true);
        }

    }
}
